package com.aos.erp.schools.model.coach;

import java.io.Serializable;
import java.util.Date;

import com.aos.erp.schools.enums.student.StudentSex;
import com.aos.erp.schools.enums.student.school.CoachSex;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
@TableName("T_COACH")
public class Coach implements Serializable {
	private static final long serialVersionUID = 1L;
	

    @TableId(value = "id", type = IdType.INPUT)
    private long id;


    @ApiModelProperty("驾校ID")
    @TableField("drivers_school_id")
    private long driversSchoolId;


    @ApiModelProperty("教练编号")
    @TableField("coach_number")
    private String coachNumber;


    @ApiModelProperty("性别   男:1;女:2;  未知：3")
    @TableField("sex")
    private CoachSex sex= CoachSex.man;


    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;


    @ApiModelProperty("证件号码")
    @TableField("idnum")
    private String idnum;


    @ApiModelProperty("手机号码")
    @TableField("phone")
    private String phone;


    @ApiModelProperty("培训科目(1：科目一  ，2：科目二，3：科目三  ，4：科目四）  多选用,隔开   例：2,3")
    @TableField("subject")
    private String subject;


    @ApiModelProperty("微信号")
    @TableField("wechat")
    private String wechat;


    @ApiModelProperty("培训车型  多选  ,隔开 例：C1,C2")
    @TableField("train_cartype")
    private String trainCartype;


    @ApiModelProperty("教龄")
    @TableField("teachingage")
    private String teachingage;


    @ApiModelProperty("教练驾驶证车型")
    @TableField("drivers_cartype")
    private String driversCartype;


    @ApiModelProperty("描述")
    @TableField("coach_describe")
    private String coachDescribe;


    @ApiModelProperty("标签 [{'label':'技术一流'},{'label':'诚实可靠'}]")
    @TableField("label")
    private String label;


    @ApiModelProperty("是否认证  （0：否  1：是）")
    @TableField("is_authentication")
    private int isAuthentication;


    @ApiModelProperty("是否删除  （0：否    1：是）")
    @TableField("is_del")
    private int isDel;


    @ApiModelProperty("修改时间")
    @TableField("updated")
    private Date updated;


    @ApiModelProperty("创建时间")
    @TableField("created")
    private Date created;

    @Override
    public String toString() {
        return "Coach{" +
                "id=" + id +
                ", driversSchoolId=" + driversSchoolId +
                ", coachNumber='" + coachNumber + '\'' +
                ", sex=" + sex +
                ", name='" + name + '\'' +
                ", idnum='" + idnum + '\'' +
                ", phone='" + phone + '\'' +
                ", subject='" + subject + '\'' +
                ", wechat='" + wechat + '\'' +
                ", trainCartype='" + trainCartype + '\'' +
                ", teachingage='" + teachingage + '\'' +
                ", driversCartype='" + driversCartype + '\'' +
                ", coachDescribe='" + coachDescribe + '\'' +
                ", label='" + label + '\'' +
                ", isAuthentication=" + isAuthentication +
                ", isDel=" + isDel +
                ", updated=" + updated +
                ", created=" + created +
                '}';
    }

    public String getSexName() {
        return sex.getDesc();
    }
}
